package com.atguigu.dao;

import com.atguigu.bean.Setmeal;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetmealMapper {
    Page<Setmeal> findPage(@Param("queryString") String queryString);

    void addSetMeal(Setmeal setmeal);

    void addSetMealAndTravelGroup(@Param("sid") Integer setmealId,@Param("ids") Integer[] ids);

    Setmeal findById(Integer id);

    List<Integer> getTravelGroupIds(Integer id);

    void edit(Setmeal setmeal);


    void deleteTravelGroupIds(Integer id);

    List<Setmeal> getSetMeal();

    Setmeal selectById(Integer id);

    List<Map<String, Object>> findSetmealCount();

}
